import store from "@/store";
import dayjs from "dayjs";
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};
// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};
export const formBase = [
  {
    label: "店铺",
    type: "input",
    field: "shopName",
  },
  {
    label: "级别",
    type: "select",
    field: "shopGradeId",
    optionsKey: "label",
    optionsValue: "value",
    options: [],
  },
];

export const tableBase = [
  {
    label: "ID",
    prop: "id",
    width: 50,
  },
  {
    label: "状态",
    prop: "status",
    echo: {
      optionsKey: "label",
      optionsValue: "value",
      options: [
        {
          label: "正常",
          value: 0,
        },
        {
          label: "异常",
          value: 1,
        },
      ],
    },
  },
  {
    label: "名称",
    prop: "shopName",
    operate: {
      type: "input",
      field: "shopName",
    },
  },
  {
    label: "级别",
    prop: "gradeName",
    width: 200,
    operate: {
      type: "select",
      field: "shopGradeId",
      optionsKey: "label",
      optionsValue: "value",
      options: [],
    },
  },
  {
    label: "负责人",
    prop: "responsiblePerson",
    operate: {
      type: "input",
      field: "responsiblePerson",
    },
  },
  {
    label: "网址",
    prop: "url",
    operate: {
      type: "input",
      field: "url",
      otherOptions: {
        type: "number",
      },
    },
  },
  {
    label: "旺旺号",
    prop: "wwNumber",
    operate: {
      type: "input",
      field: "wwNumber",
      otherOptions: {
        type: "number",
      },
    },
  },
  {
    label: "店铺地址",
    prop: "shopAddress",
    operate: {
      type: "input",
      field: "shopAddress",
    },
  },
  {
    label: "联系电话",
    prop: "linkPhone",
    width: 100,
    operate: {
      type: "input",
      field: "linkPhone",
      otherOptions: {
        type: "number",
      },
    },
  },
  {
    label: "QQ",
    prop: "qq",
    width: 100,
    operate: {
      type: "input",
      field: "qq",
      otherOptions: {
        type: "number",
      },
    },
  },
  {
    label: "充值地址",
    prop: "payAddress",
    width: 200,
    operate: {
      type: "input",
      field: "payAddress",
    },
  },
  {
    label: "视频播放地址",
    prop: "videoAddress",
    width: 200,
    operate: {
      type: "input",
      field: "videoAddress",
    },
  },
  {
    label: "获取积分相隔年限",
    prop: "integral",
    width: 150,
    operate: {
      type: "input",
      field: "integral",
      otherOptions: {
        type: "number",
      },
    },
  },
  {
    label: "第三方ID",
    prop: "thirdPartyId",
  },
];
